/*//@PCSTART@//
package com.bluetane.pc;
//@PCEND@//*/
//@ANDROIDSTART@//
package com.bluetane.android;
//@ANDROIDEND@//

public class BluetaneEvent extends java.util.EventObject
{

//@ANDROIDSTART@//
	//private static final long serialVersionUID = 1L;
//@ANDROIDEND@//

	public enum BluetaneEventType {DeviceFound,             // message is the BtRemoteDevice found
                                    //RemoteRunningStatus,    // message is boolean isRunning (true if service found, false if not)
                                    //SearchStarted,        // message is
                                    BluetoothActivated,     // message is 
                                    MadeDiscoverable,       // message is
                                    DeviceSearchComplete,   // message is //unused atm.
                                    ConnectionEstablished,  // message is
                                    SendableRecieved}       // message is the SendableObject that has arrived

    BluetaneEventType type;
    Object message;

    public BluetaneEvent(Object src,BluetaneEventType eventType,Object eventMessage)
    {
        super(src);
        type=eventType;
        message=eventMessage;
    }

    public BluetaneEventType getType(){
        return type;
    }

    public Object getMessage(){
        return message;
    }
}
